package com.design.movieticket.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.design.movieticket.entity.Seat;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SeatMapper extends BaseMapper<Seat> {
    @Select("select * from seat where movie_hall_id=#{movieHallId} and del_flag=0 order by seat_x,seat_y")
    List<Seat> getSeatList(Long movieHallId);
}
